/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package myetl;

import java.io.File;
import java.io.FileFilter;
import java.io.FilenameFilter;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 *
 * @author apuangr1
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        ConnManager conn = new ConnManager();
        conn.init("c:/apll/myetl/connection.conf");
        //
//        AppManager apm = new AppManager();
//        apm.init(args[1]);
        File dir = new File("c:/apll/myetl");
        FilenameFilter filter = new iniFilter();
        String files[] = dir.list(filter);

        for (int i = 0; i < files.length; i++) {
            ImportManager im = new ImportManager("c:/apll/myetl" + "/" + files[i], conn);
            im.run();
        }
//        ExecutorService pool = Executors.newFixedThreadPool(5);
//        File dir = new File(indir);
//        File[] files = dir.listFiles();


        System.exit(0);
    }
}
